//
//  SurpriseShopDetaiTwoStyleCell.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/14.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class SurpriseShopDetaiTwoStyleCell: BaseTableViewCell {
    
    @IBOutlet weak var bottomLabel: UILabel!
    @IBOutlet weak var topLabel: UILabel!
    @IBOutlet weak var topBgView: UIView!
    @IBOutlet weak var bgView: UIView!
    var model : SurpriseShopDetModel?{
        
        didSet{
            
            if model == nil {
                return
            }
            
            topLabel.text = "期号: \(model!.od_no)"
            
            bottomLabel.text = "揭晓倒计时: \(model!.countdown)"
            
            
        }
        
        
    }


    override func awakeFromNib() {
        super.awakeFromNib()
        
        bgView.backgroundColor = UIColor.viewBgGrey()
        
        topBgView.addCornerAndBorder(borderColor: nil, borderWidth: 0, masksToBounds: true, cornerRadius: 5)
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
